#include "gyroscope.h"

Gyroscope::Gyroscope() {
    _gyroscopeModel = "CH110";
    _gyroscopeVendor = "NXP";
}

void Gyroscope::print() {
    cout << "Gyroscope:" << endl;
    cout << "\tGyroscopeModel: " << _gyroscopeModel << endl;
    cout << "\tGyroscopeVendor: " << _gyroscopeVendor << endl;
}

int Gyroscope::save(YAML::Node& node) {
    node["Gyroscope"] = YAML::Node(YAML::NodeType::Map);
    node["Gyroscope"]["gyroscopeModel"] = _gyroscopeModel;
    node["Gyroscope"]["gyroscopeVendor"] = _gyroscopeVendor;
    return 0;
}

int Gyroscope::setGyroscopeModel(std::string model) {
    _gyroscopeModel = model;
    return 0;
}

void Gyroscope::setGyroscopeVendor(std::string vendor) {
    _gyroscopeVendor = vendor;
}
